<extend name="public:base" />

<block name="left">
	<div class="mark_bar cl">
		<a href="{:url('uc/promotion/index')}" class="goback fl"><i class="iconfont">&#xe600;</i></a>
		<p>好友详情</p>
	</div>
</block>

<block name="main">

	<div class="container slideTxtBox">
		<div class="hd">
			<ul class="member_nav">
				<li class="on"><a href="javascript:void(0)">一级好友</a></li>
				<li><a href="javascript:void(0)">二级级好友</a></li>
			</ul>
		</div>
		<div class="bd">
			<div class="promoteUl">
				<notempty name="friend_list">
					<div class="promote_data_bar small">
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="33.3%">
									一级好友人数(人)<br /><b class="af90 big">{$first_friend.total_count}</b>
								</td>
								<td width="33.3%">
									累计贡献奖励(元)<br /><b class="af90 big">{$first_friend.total_contribution_amount}</b>
								</td>
							</tr>
						</table>
					</div>
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row_table small">
						<tr class="a999 small">
							<td width="32.5%">用户</td>
							<td width="32.5%">注册时间</td>
							<td width="35%" align="right">贡献奖励（元）</td>
						</tr>
						<volist name="friend_list" id="v">
							<if condition="$v.rank eq 1">
							<tr>
								<td>
									<if condition="$v['user_phone'] neq ''">
										{$v.user_phone|substr=0,3}****{$v.user_phone|substr=7,4}
										<else/> 未认证手机
									</if>
								</td>
								<td class="accc small">{$v.reg_time|date="Y-m-d",###}</td>
								<td align="right">{$v.contribution_amount|default=0}</td>
							</tr>
							</if>
						</volist>
					</table>
					<else/>
					<p class="empty">您暂无一级好友喔！</p>
				</notempty>
			</div>
			<div class="promoteUl hide">
				<notempty name="friend_list">
					<div class="promote_data_bar small">
						<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td width="33.3%">
									二级好友人数(人)<br /><b class="af90 big">{$send_friend.total_count}</b>
								</td>
								<td width="33.3%">
									累计贡献奖励(元)<br /><b class="af90 big">{$send_friend.total_contribution_amount}</b>
								</td>
							</tr>
						</table>
					</div>
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row_table small">
						<tr class="a999 small">
							<td width="32.5%">用户</td>
							<td width="32.5%">注册时间</td>
							<td width="35%" align="right">贡献奖励（元）</td>
						</tr>
						<volist name="friend_list" id="v">
							<if condition="$v.rank eq 2">
								<tr>
									<td>
										<if condition="$v['user_phone'] neq ''">
											{$v.user_phone|substr=0,3}****{$v.user_phone|substr=7,4}
											<else/> 未认证手机
										</if>
									</td>
									<td class="accc small">{$v.reg_time|date="Y-m-d",###}</td>
									<td align="right">{$v.contribution_amount}</td>
								</tr>
							</if>
						</volist>
					</table>
					<else/>
					<p class="empty">您暂无二级好友喔！</p>
				</notempty>
			</div>
		</div>
	</div>


</block>

<block name="menu"></block>

<block name="js">
	<script type="text/javascript" src="__JS__/jquery.SuperSlide.2.1.js"></script>
	<script type="text/javascript">
        jQuery(".slideTxtBox").slide({trigger:"click",mainCell:".bd"});
	</script>
</block>